Skip to content

Conversation

@nate-chandler
Copy link
Contributor

Previously, the metadata accessor for which canonical prespecializations had been formed included checks against the passed-in arguments to determine whether the access matched a prespecialized record or not.

Now that the prespecialized records are attached to the nominal type descriptor for the type, eliminate this hard-coded generated code and instead let swift_getGenericMetadata do the work of looking through the prespecializations.

Depends on #33442 .

@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 1f2d4bcf954955e562bea0275890d3bb0028be42

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 1f2d4bcf954955e562bea0275890d3bb0028be42

@nate-chandler nate-chandler force-pushed the generic-metadata-prespecialization-components/return-canonical-prespecializations-from-getGenericMetadata branch from 1f2d4bc to aa41a12 Compare August 14, 2020 00:48
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

1 similar comment
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

@swift-ci please test windows

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 1f2d4bcf954955e562bea0275890d3bb0028be42

@nate-chandler nate-chandler force-pushed the generic-metadata-prespecialization-components/return-canonical-prespecializations-from-getGenericMetadata branch from ce9c09c to e021a36 Compare August 14, 2020 17:11
@nate-chandler
Copy link
Contributor Author

@swift-ci please test and merge

1 similar comment
@nate-chandler
Copy link
Contributor Author

@swift-ci please test and merge

Previously, the metadata accessor for which canonical prespecializations
had been formed included checks against the passed-in arguments to
determine whether the access matched a prespecialized record or not.

Now that the prespecialized records are attached to the nominal type
descriptor for the type, eliminate this hard-coded generated code and
instead let swift_getGenericMetadata do the work of looking through the
prespecializations.
@nate-chandler nate-chandler force-pushed the generic-metadata-prespecialization-components/return-canonical-prespecializations-from-getGenericMetadata branch from e021a36 to 409bc9d Compare August 14, 2020 18:19
@nate-chandler
Copy link
Contributor Author

@swift-ci please test and merge

1 similar comment
@nate-chandler
Copy link
Contributor Author

@swift-ci please test and merge

@swift-ci swift-ci merged commit 75ea939 into swiftlang:master Aug 14, 2020
@nate-chandler nate-chandler deleted the generic-metadata-prespecialization-components/return-canonical-prespecializations-from-getGenericMetadata branch July 5, 2023 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants